import request from "./request";

export const auditsList = (data) => {
  return request.post("/audits/list", data);
};

export const audits = (data) => {
  return request.post("/audits/audit", data);
};

/**
 * 获取未审核数量
 * @param {string} data.project_table 项目表名 public_toilets garbage_stations recyclable_sites sanitation_rooms parking_lots
 * @param {string} data.type 类型 0未审核 1已完成审核
 * @returns {Promise<number>} 未审核数量
 */
export const get_unreviewed = (data) => {
  return request.post("/audits/get_unreviewed", data);
};
